package com.design.pattern.decorator.battercake;

/**
 * @version 1.0
 * @author: CRM_SYSTEM
 * @date: 2022/10/13 22:33
 * @Description:
 */
public class EggDecorator extends BatterCakeDecorator{



    public EggDecorator(BatterCake batterCake){
       super(batterCake);
    }

    protected String getMsg() {
        return  super.getMsg()+"+ 一个鸡蛋";
    }


    protected int getPrice() {
        return   super.getPrice()+2;
    }
}
